#ifndef __INFLASH_H__
#define __INFLASH_H__

#include "stm32def.h"
//---------------------------
//void InFlash_Init(void);

bool InFlash_Erase(u32 addr, u32 size);

//bool InFlash_ByteProgram(u32 addr, const void *buf, u32 size);
//u32 InFlash_WordProg(u32 addr, const void *buf, u32 size);
//bool InFlash_DWordProg(u32 addr, const void *buf, u32 size);

u32 PutInFlash(u32 addr, u8 *buf, u32 size);
u32 GetInFlash(u32 addr, u8 *buf, u32 size);

bool InFlashWriteProtect(bool On_Off);
bool InFlashReadProtect(bool On_Off);
//==============================================================================
#endif
